10% archive-ajax

Code Review | AJAX Archive for WP Themes

WordPress plugin AJAX Archive for WP Themes scored10%from 54 tests.

About plugin

  • Plugin page: archive-ajax
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: Feb 7, 2012
  • Latest release: Feb 7, 2012
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: bi0xid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,305 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/archive-ajax/archive-ajax.php+161
    syntax error, unexpected 'endforeach' (T_ENDFOREACH), expecting function (T_FUNCTION) or const (T_CONST)

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

Server-side resources used by AJAX Archive for WP Themes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.13 ▲1.99
Dashboard /wp-admin3.31 ▼0.0445.45 ▼9.96
Posts /wp-admin/edit.php3.36 ▲0.0044.39 ▼5.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.71 ▼11.44
Media Library /wp-admin/upload.php3.23 ▲0.0035.75 ▲1.99

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AJAX Archive for WP Themes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.021.74 ▲0.1637.87 ▼1.88
Dashboard /wp-admin2,192 ▲315.53 ▼0.1488.49 ▼11.2341.83 ▼0.39
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0235.75 ▼2.5233.46 ▼4.30
Add New Post /wp-admin/post-new.php1,526 ▼123.59 ▲0.36706.54 ▲85.6453.27 ▼1.15
Media Library /wp-admin/upload.php1,397 ▼34.21 ▼0.0097.53 ▼21.1642.75 ▼6.82

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected 'endforeach' (T_ENDFOREACH), expecting function (T_FUNCTION) or const (T_CONST) in wp-content/plugins/archive-ajax/archive-ajax.php on line 161

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (An example of the final result after activating the plugin.), #2 (Transition 1), #3 (Transition 2)
  • Tested up to: Version not formatted correctly
The official readme.txt is a good inspiration

archive-ajax/archive-ajax.php Passed 13 tests

The primary PHP file in "AJAX Archive for WP Themes" version 0.1 is used by WordPress to initiate all plugin functionality
38 characters long description:
A way to show large archives by month.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected150 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png18.46KB6.14KB▼ 66.71%
screenshot-2.png18.26KB5.94KB▼ 67.48%