90% shopeo-wp-core

Code Review | Shopeo Wordpress Core

WordPress plugin Shopeo Wordpress Core scored90%from 54 tests.

About plugin

  • Plugin page: shopeo-wp-core
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Nov 15, 2022
  • Latest release: Nov 19, 2022
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: shopeo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.87ms] Passed 4 tests

An overview of server-side resources used by Shopeo Wordpress Core
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0543.94 ▲0.12
Dashboard /wp-admin5.28 ▲1.981,917.61 ▲1,862.44
Posts /wp-admin/edit.php3.46 ▲0.1150.02 ▼5.19
Add New Post /wp-admin/post-new.php5.93 ▲0.0587.42 ▼10.38
Media Library /wp-admin/upload.php3.27 ▲0.0532.72 ▼4.03

Server storage [IO: ▲0.05MB] [DB: ▲0.40MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Shopeo Wordpress Core
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,566 ▼19514.57 ▲0.221.76 ▼0.0944.72 ▼5.17
Dashboard /wp-admin1,980 ▼2005.62 ▼0.0787.56 ▼14.3355.23 ▲9.04
Posts /wp-admin/edit.php2,087 ▼162.01 ▲0.0434.59 ▼5.8432.47 ▼5.47
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▼0.43647.80 ▼49.0551.54 ▼12.18
Media Library /wp-admin/upload.php1,384 ▼194.20 ▼0.01101.47 ▼7.4945.80 ▼2.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.40MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in shopeo-wp-core/assets to your readme.txt
You can look at the official readme.txt

shopeo-wp-core/shopeo-wp-core.php Passed 13 tests

"Shopeo Wordpress Core" version 0.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
The easy way to customize your WordPress wp-login.php screen!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin331 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP55831242
PO File1182167
CSS21016
SVG2006

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo_bg.png10.62KB4.38KB▼ 58.71%
assets/images/logo.png10.46KB4.44KB▼ 57.53%