84% azurecurve-points-of-interest

Code Review | azurecurve Points of Interest

WordPress plugin azurecurve Points of Interest scored84%from 54 tests.

About plugin

  • Plugin page: azurecurve-points...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.9
  • WordPress version: 6.3.1
  • First release: May 20, 2015
  • Latest release: Nov 26, 2017
  • Number of updates: 8
  • Update frequency: every 115.1 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼3.21ms] Passed 4 tests

Server-side resources used by azurecurve Points of Interest
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2550.03 ▲8.43
Dashboard /wp-admin3.53 ▲0.2357.68 ▼2.00
Posts /wp-admin/edit.php3.65 ▲0.2951.74 ▼0.44
Add New Post /wp-admin/post-new.php6.12 ▲0.2393.44 ▼12.30
Media Library /wp-admin/upload.php3.46 ▲0.2339.83 ▲1.92
Points of Interest /wp-admin/edit.php?post_type=points-of-interest3.5042.63
Add New /wp-admin/post-new.php?post_type=points-of-interest3.5973.38
Options /wp-admin/edit.php?post_type=points-of-interest&page=points_of_interest_options3.4339.07

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
azc_poi_options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by azurecurve Points of Interest
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.34 ▼0.221.71 ▼0.1542.50 ▼3.48
Dashboard /wp-admin2,244 ▲675.56 ▼0.0187.37 ▼0.5678.23 ▲37.36
Posts /wp-admin/edit.php2,155 ▲551.95 ▼0.0734.81 ▼0.6835.01 ▲0.66
Add New Post /wp-admin/post-new.php1,569 ▲4123.11 ▼0.02701.62 ▼8.4658.48 ▲4.47
Media Library /wp-admin/upload.php1,452 ▲554.14 ▼0.03115.33 ▲5.6274.83 ▲28.03
Points of Interest /wp-admin/edit.php?post_type=points-of-interest1,2171.9031.5030.52
Add New /wp-admin/post-new.php?post_type=points-of-interest2,7337.65171.60143.16
Options /wp-admin/edit.php?post_type=points-of-interest&page=points_of_interest_options9191.9924.6226.12

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/azurecurve-points-of-interest/templates/single-point-of-interest.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-points-of-interest/azurecurve-points-of-interest.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/azurecurve-points-of-interest/templates/archive-points-of-interest.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% 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
5 plugin tags: shortcode, pages, archives, custom post type, points of interest

azurecurve-points-of-interest/azurecurve-points-of-interest.php 85% from 13 tests

The main PHP file in "azurecurve Points of Interest" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain should only use lowercase characters and dashes

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
Success! There were no dangerous files found in this plugin1,081 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4149591,061
CSS10220

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions29
▷ Named functions29100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/poi-16x16.png0.39KB0.40KB0.00%
images/poi-32x32.png0.66KB0.67KB0.00%