78% az-content-finder

Code Review | AZ Content Finder

WordPress plugin AZ Content Finder scored 78% from 54 tests.

About plugin

  • Plugin page: az-content-finder
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 6.3.1
  • First release: May 27, 2016
  • Latest release: May 28, 2016
  • Number of updates: 4
  • Update frequency: every 2.8 days
  • Top authors: antonzaroutski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 705 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.02MB] [CPU: ▼1.89ms] Passed 4 tests

Server-side resources used by AZ Content Finder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.30 ▼5.67
Dashboard /wp-admin3.32 ▲0.0245.96 ▼2.46
Posts /wp-admin/edit.php3.37 ▲0.0147.92 ▲1.45
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.80 ▼0.89
Media Library /wp-admin/upload.php3.24 ▲0.0137.71 ▲5.61
AZ Content Finder /wp-admin/options-general.php?page=az-content-finder3.2632.59

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for AZ Content Finder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.60 ▼0.714.87 ▲2.7140.60 ▼4.55
Dashboard /wp-admin2,214 ▲265.90 ▲0.02107.44 ▼6.2042.57 ▼0.50
Posts /wp-admin/edit.php2,097 ▲52.00 ▼0.0039.28 ▼2.1435.12 ▲1.03
Add New Post /wp-admin/post-new.php1,537 ▲1718.38 ▼4.88592.99 ▼55.3661.88 ▲4.03
Media Library /wp-admin/upload.php1,396 ▲114.25 ▲0.07100.44 ▼1.5948.23 ▲2.95
AZ Content Finder /wp-admin/options-general.php?page=az-content-finder8742.0625.1726.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • 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 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/az-content-finder/public/partials/az-content-finder-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/az-content-finder/admin/partials/az-content-finder-admin-display.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === az-content-finder === )
You can look at the official readme.txt

az-content-finder/az-content-finder.php 92% from 13 tests

This is the main PHP file of "AZ Content Finder" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin404 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12232582379
CSS25819
JavaScript24546

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.86
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2172.41%
▷ Protected methods310.34%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin