84% at-search-console

Code Review | AT Search Console

WordPress plugin AT Search Console scored84%from 54 tests.

About plugin

  • Plugin page: at-search-console
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2023
  • Latest release: Feb 4, 2023
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: adrianifero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /180 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by AT Search Console
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.04 ▼6.59
Dashboard /wp-admin3.32 ▼0.0243.22 ▼19.02
Posts /wp-admin/edit.php3.38 ▲0.0248.77 ▲3.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.23 ▼13.36
Media Library /wp-admin/upload.php3.25 ▲0.0236.06 ▲1.26
AT Search Console /wp-admin/options-general.php?page=at-search-console3.2129.63

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for AT Search Console
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5314.28 ▼0.271.95 ▲0.2142.68 ▲0.70
Dashboard /wp-admin2,199 ▲225.64 ▲0.0697.20 ▲3.9139.73 ▼0.70
Posts /wp-admin/edit.php2,104 ▲71.98 ▲0.0037.62 ▼1.6435.34 ▲1.89
Add New Post /wp-admin/post-new.php1,538 ▲1218.61 ▼4.34604.86 ▼6.8575.66 ▲23.18
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.02100.00 ▼7.3745.42 ▲1.26
AT Search Console /wp-admin/options-general.php?page=at-search-console8392.0427.2828.26

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 detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% 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 no errors were found, 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/at-search-console/at-search-console.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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: You should set the name of your plugin on the first line ( === AT Search Console === )
  • Screenshots: Please add an image for screenshot #2 (*One Click*: Click on it and go straight to the current page in the Performance tab of Search Console)
You can look at the official readme.txt

at-search-console/at-search-console.php Passed 13 tests

Analyzing the main PHP file in "AT Search Console " version 1.0.1
140 characters long description:
Jump into monitoring your website's clicks, positions, and optimize your site for better search performance for any page with just one click

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin86 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1271086

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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%
Functions0
▷ Named functions00.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
2 PNG files occupy 0.22MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon-256x256.png26.16KB9.09KB▼ 65.25%
img/screenshot-1.png194.98KB64.20KB▼ 67.07%