84% azurecurve-posts-archive

Code Review | azurecurve Posts Archive

WordPress plugin azurecurve Posts Archive scored 84% from 54 tests.

About plugin

  • Plugin page: azurecurve-posts-...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 6.3.1
  • First release: Jun 10, 2014
  • Latest release: Dec 6, 2018
  • Number of updates: 18
  • Update frequency: every 91.1 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,659 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 gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.42ms] Passed 4 tests

An overview of server-side resources used by azurecurve Posts Archive
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.23 ▼4.19
Dashboard /wp-admin3.37 ▲0.0748.34 ▼0.71
Posts /wp-admin/edit.php3.42 ▲0.0746.13 ▼1.94
Add New Post /wp-admin/post-new.php5.95 ▲0.0783.88 ▼6.82
Media Library /wp-admin/upload.php3.30 ▲0.0737.50 ▲4.22
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.2630.82
Post Archive /wp-admin/admin.php?page=azc-pa3.2630.26

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_azc_pa
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

azurecurve Posts Archive: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.36 ▼1.401.71 ▼0.5943.56 ▼4.33
Dashboard /wp-admin2,222 ▲345.08 ▼0.79104.83 ▼11.4468.87 ▲20.63
Posts /wp-admin/edit.php2,117 ▲282.01 ▲0.0138.18 ▲3.1937.56 ▲1.17
Add New Post /wp-admin/post-new.php1,541 ▲417.81 ▼5.04677.00 ▲47.1952.91 ▼3.97
Media Library /wp-admin/upload.php1,419 ▲344.18 ▼0.0097.21 ▼5.3047.47 ▲4.05
Plugins /wp-admin/admin.php?page=azc-plugin-menus8322.0227.9328.37
Post Archive /wp-admin/admin.php?page=azc-pa7822.0725.6125.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_azc_pa
    • widget_recent-posts
    • can_compress_scripts
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-posts-archive/includes/menu.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-posts-archive/includes/menu.php:29

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: widget, archive, posts, page

azurecurve-posts-archive/azurecurve-posts-archive.php 92% from 13 tests

"azurecurve Posts Archive" version 2.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin553 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36455384
CSS208169

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%