84% aspiesoft-ajax-load-page

Code Review | AspieSoft Ajax Load Page

WordPress plugin AspieSoft Ajax Load Page scored84%from 54 tests.

About plugin

  • Plugin page: aspiesoft-ajax-lo...
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Aug 6, 2021
  • Latest release: Aug 6, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: aspiesoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /374 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.46ms] Passed 4 tests

A check of server-side resources used by AspieSoft Ajax Load Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.19 ▲1.84
Dashboard /wp-admin3.39 ▲0.0549.49 ▼13.15
Posts /wp-admin/edit.php3.51 ▲0.1551.58 ▲4.39
Add New Post /wp-admin/post-new.php5.97 ▲0.0995.97 ▼16.07
Media Library /wp-admin/upload.php3.31 ▲0.0937.05 ▲1.54
AspieSoft Ajax Load Page /wp-admin/options-general.php?page=aspiesoft-ajax-load-page3.3333.28

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by AspieSoft Ajax Load Page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.57 ▼0.724.96 ▲3.0544.95 ▲0.99
Dashboard /wp-admin2,207 ▲224.86 ▼0.96105.14 ▲2.2242.64 ▲4.87
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0438.49 ▲0.3335.17 ▼1.11
Add New Post /wp-admin/post-new.php1,527 ▼123.46 ▲4.93649.90 ▲32.4243.27 ▼7.78
Media Library /wp-admin/upload.php1,392 ▲74.35 ▲0.1196.13 ▼8.5339.30 ▼8.17
AspieSoft Ajax Load Page /wp-admin/options-general.php?page=aspiesoft-ajax-load-page8782.0864.0935.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=aspiesoft-ajax-load-page
    • > Notice in wp-content/plugins/aspiesoft-ajax-load-page/templates/admin.php+117
    Undefined index: LOCAL_ADDR
    • > GET request to /wp-admin/options-general.php?page=aspiesoft-ajax-load-page
    • > Notice in wp-content/plugins/aspiesoft-ajax-load-page/templates/admin.php+117
    Undefined index: LOCAL_PORT

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: performance, load, page, ajax

aspiesoft-ajax-load-page/aspiesoft-ajax-load-page.php Passed 13 tests

The entry point to "AspieSoft Ajax Load Page" version 1.2 is a PHP file that has certain tags in its header comment area
72 characters long description:
Easily lazy load another page simply by adding a shortcode with its url.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,455 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity19.17
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods1235.29%
▷ Public methods2882.35%
▷ Protected methods00.00%
▷ Private methods617.65%
▷ Named functions00.00%
▷ Anonymous functions5100.00%
▷ 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 files were detected