84% infogeek-admin-themes

Code Review | Infogeek Admin Themes

WordPress plugin Infogeek Admin Themes scored84%from 54 tests.

About plugin

  • Plugin page: infogeek-admin-th...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 6.3.1
  • First release: Dec 16, 2013
  • Latest release: Dec 16, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Konstantinos_Tsatsarounos (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,729 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.43ms] Passed 4 tests

An overview of server-side resources used by Infogeek Admin Themes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.84 ▼5.39
Dashboard /wp-admin3.32 ▲0.0145.06 ▼3.45
Posts /wp-admin/edit.php3.37 ▲0.0144.50 ▼1.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.30 ▼15.27
Media Library /wp-admin/upload.php3.24 ▲0.0135.88 ▼0.99

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Infogeek Admin Themes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8114.74 ▲0.382.22 ▲0.4940.77 ▼3.27
Dashboard /wp-admin2,211 ▲194.87 ▼0.06107.18 ▼5.9937.36 ▼10.16
Posts /wp-admin/edit.php2,091 ▲51.99 ▼0.0234.11 ▼5.9131.17 ▼2.41
Add New Post /wp-admin/post-new.php1,530 ▲1122.92 ▼0.31666.72 ▼9.2559.84 ▲3.75
Media Library /wp-admin/upload.php1,390 ▲54.22 ▼0.0094.33 ▼7.2744.43 ▼0.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infogeek-admin-themes/plugin.php:66

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: color, backend, backend theme, theme, new admin ui...

infogeek-admin-themes/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Infogeek Admin Themes" version 1.0
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("infogeek-admin-themes.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,127 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS521372626
Sass616510470
PHP1132231

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin