84% magazi-admin-theme

Code Review | Magazi Admin Theme

WordPress plugin Magazi Admin Theme scored84%from 54 tests.

About plugin

  • Plugin page: magazi-admin-theme
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4.1
  • WordPress version: 6.3.1
  • First release: Jul 27, 2012
  • Latest release: Sep 15, 2012
  • Number of updates: 17
  • Update frequency: every 3.0 days
  • Top authors: aristath (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /5,327 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.16ms] Passed 4 tests

An overview of server-side resources used by Magazi Admin Theme
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.44 ▼5.56
Dashboard /wp-admin3.31 ▲0.0046.14 ▼8.40
Posts /wp-admin/edit.php3.36 ▲0.0048.88 ▼1.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.88 ▼5.55
Media Library /wp-admin/upload.php3.23 ▲0.0037.98 ▲3.23

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Magazi Admin Theme: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,788 ▲2714.28 ▼0.341.67 ▼0.0339.82 ▼4.35
Dashboard /wp-admin2,155 ▼195.59 ▲0.0589.31 ▼13.7443.83 ▲0.46
Posts /wp-admin/edit.php2,075 ▼252.14 ▲0.1738.89 ▼1.4436.35 ▲0.63
Add New Post /wp-admin/post-new.php1,527 ▼423.69 ▲0.54626.63 ▼40.5251.15 ▼2.26
Media Library /wp-admin/upload.php1,363 ▼314.26 ▲0.11103.43 ▼7.0843.69 ▼3.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magazi-admin-theme/magaziadmin.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: administration, dashboard, admin theme

magazi-admin-theme/magaziadmin.php 92% from 13 tests

The main PHP file in "Magazi Admin Theme" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("magazi-admin-theme.php" instead of "magaziadmin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected219 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1410213
PHP15266

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png50.23KB20.61KB▼ 58.97%