84% real-archive-and-category

Code Review | REAL Archive Pages List

WordPress plugin REAL Archive Pages List scored84%from 54 tests.

About plugin

  • Plugin page: real-archive-and-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.0
  • WordPress version: 6.3.1
  • First release: Dec 28, 2014
  • Latest release: Dec 28, 2014
  • Number of updates: 29
  • Update frequency: every 3.9 days
  • Top authors: martin_ziegert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /902 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
Installer ran successfully

Server metrics [RAM: ▼0.70MB] [CPU: ▼20.48ms] Passed 4 tests

A check of server-side resources used by REAL Archive Pages List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.46 ▼0.67
Dashboard /wp-admin3.32 ▼0.0348.27 ▼15.55
Posts /wp-admin/edit.php3.37 ▲0.0149.46 ▲2.28
Add New Post /wp-admin/post-new.php3.10 ▼2.7937.92 ▼67.98
Media Library /wp-admin/upload.php3.24 ▲0.0140.40 ▲5.45

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

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

Browser metrics Passed 4 tests

A check of browser resources used by REAL Archive Pages List
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.20 ▼0.461.92 ▲0.2644.42 ▲3.12
Dashboard /wp-admin2,214 ▲335.61 ▼0.1094.11 ▼6.9042.35 ▲0.12
Posts /wp-admin/edit.php2,116 ▲161.98 ▼0.0138.34 ▲1.0936.23 ▲2.08
Add New Post /wp-admin/post-new.php45 ▼1,4860.42 ▼22.750.07 ▼610.9210.16 ▼39.22
Media Library /wp-admin/upload.php1,407 ▲104.15 ▼0.0698.98 ▼4.9867.36 ▲20.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-archive-and-category/ajax.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-archive-and-category/archive-backend.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/real-archive-and-category/admin.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/real-archive-and-category/select_image_dialog.php:152
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/real-archive-and-category/archive-template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-archive-and-category/REAL-Archive-Pages.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === real-archive-and-category === )
You can take inspiration from this readme.txt

real-archive-and-category/REAL-Archive-Pages.php 92% from 13 tests

"REAL Archive Pages List" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("real-archive-and-category.php" instead of "REAL-Archive-Pages.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
Everything looks great! No dangerous files found in this plugin2,301 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6611151,597
JavaScript118475
CSS220229

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/custom_submit.png0.97KB0.99KB0.00%
css/images/colorpicker_hex.png0.52KB0.42KB▼ 19.92%
css/images/colorpicker_rgb_r.png1.04KB0.77KB▼ 26.17%
css/images/search.png3.60KB1.07KB▼ 70.22%
css/images/custom_hex.png0.55KB0.39KB▼ 28.11%