84% admire-extra

Code Review | Admire Extra

WordPress plugin Admire Extra scored84%from 54 tests.

About plugin

  • Plugin page: admire-extra
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2023
  • Latest release: Sep 1, 2023
  • Number of updates: 6
  • Update frequency: every 32.5 days
  • Top authors: sonalsinha21 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /413 total downloads


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.41MB] [CPU: ▲1.80ms] Passed 4 tests

This is a short check of server-side resources used by Admire Extra
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3753.70 ▲11.84
Dashboard /wp-admin3.77 ▲0.4750.59 ▼0.27
Posts /wp-admin/edit.php3.83 ▲0.4752.13 ▼1.84
Add New Post /wp-admin/post-new.php6.29 ▲0.4194.42 ▲0.01
Media Library /wp-admin/upload.php3.63 ▲0.4143.42 ▲9.28
Install Admire Demos /wp-admin/themes.php?page=admire-panel-install-demos4.0937.02

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Admire Extra
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7714.74 ▲0.452.36 ▼0.0842.12 ▼7.68
Dashboard /wp-admin2,221 ▲304.85 ▼0.01108.87 ▼1.5341.62 ▲1.59
Posts /wp-admin/edit.php2,104 ▲152.03 ▼0.1039.60 ▲1.0337.49 ▲4.41
Add New Post /wp-admin/post-new.php1,539 ▲623.37 ▲0.27642.85 ▼45.7556.44 ▼11.30
Media Library /wp-admin/upload.php1,394 ▲64.21 ▼0.0194.48 ▼8.1544.84 ▲1.49
Install Admire Demos /wp-admin/themes.php?page=admire-panel-install-demos1,0192.2529.4630.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      include(WP_PLUGIN_DIR/admire-extra/lib/demo/classes/controllers/statics/kirki-statics.php): failed to open stream: No such file or directory in wp-content/plugins/admire-extra/include/lib/controllers/module/module-check.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/admire-extra/lib/demo/classes/controllers/statics/kirki-statics.php:3
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/admire-extra/include/lib/controllers/module/module-check.php on line 2
    • > PHP Warning
      include(): Failed opening 'WP_PLUGIN_DIR/admire-extra/lib/demo/classes/controllers/statics/kirki-statics.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/admire-extra/include/lib/controllers/module/module-check.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7 in admire-extra/assets to your readme.txt
You can look at the official readme.txt

admire-extra/admire-extra.php 92% from 13 tests

The principal PHP file in "Admire Extra" v. 1.4 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 608 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin7,335 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity42.33
▷ Minimum class complexity2.00
▷ Maximum class complexity186.00
Average method complexity6.06
▷ Minimum method complexity1.00
▷ Maximum method complexity74.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
▷ Static methods1212.24%
▷ Public methods9293.88%
▷ Protected methods11.02%
▷ Private methods55.10%
▷ Named functions38100.00%
▷ Anonymous functions00.00%
▷ Global constants9100.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
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/admin/img/icon-elementor.png2.60KB1.61KB▼ 38.07%
lib/admin/img/admire-sites.png66.09KB19.51KB▼ 70.48%
lib/admin/img/icon-elementor1.png3.03KB1.62KB▼ 46.52%
lib/admin/img/icon-gutenberg.png2.23KB1.81KB▼ 18.85%