84% postpeek

Code Review | PostPeek - One-Click Access to Your Search Console

WordPress plugin PostPeek - One-Click Access to Your Search Console scored84%from 54 tests.

About plugin

  • Plugin page: postpeek
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 13, 2023
  • Latest release: Sep 15, 2023
  • Number of updates: 10
  • Update frequency: every 10.4 days
  • Top authors: jlil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /119 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.31ms] Passed 4 tests

Analyzing server-side resources used by PostPeek - One-Click Access to Your Search Console
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.43 ▼5.50
Dashboard /wp-admin3.32 ▲0.0244.47 ▼4.93
Posts /wp-admin/edit.php3.38 ▲0.0245.77 ▲2.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0299.40 ▲6.69
Media Library /wp-admin/upload.php3.25 ▲0.0239.89 ▲6.72
PostPeek /wp-admin/options-general.php?page=postpeek3.2031.40

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
postpeek_settings_visited
db_upgraded
postpeek_activated
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by PostPeek - One-Click Access to Your Search Console
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.59 ▼0.641.66 ▼0.2339.50 ▼9.71
Dashboard /wp-admin2,241 ▲534.82 ▼1.07107.07 ▼6.4442.54 ▼3.68
Posts /wp-admin/edit.php2,127 ▲382.19 ▲0.1441.60 ▲4.6935.99 ▼0.15
Add New Post /wp-admin/post-new.php1,534 ▲1717.47 ▼0.09618.87 ▼16.8950.01 ▲0.45
Media Library /wp-admin/upload.php1,423 ▲354.17 ▲0.0099.61 ▲2.5845.68 ▲3.45
PostPeek /wp-admin/options-general.php?page=postpeek9002.2025.5827.03

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 does not fully uninstall, leaving 8 options in the database
    • widget_recent-comments
    • postpeek_activated
    • can_compress_scripts
    • widget_theysaidso_widget
    • postpeek_settings_visited
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/postpeek/includes/PostPeek_AdminNotices.php:14

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: search console, insights, google, posts, quick actions

postpeek/postpeek.php Passed 13 tests

The primary PHP file in "PostPeek - One-Click Access to Your Search Console" version 1.1.3 is used by WordPress to initiate all plugin functionality
117 characters long description:
PostPeek: Immediate Post Insights, a convenient plugin that adds a direct link to search console stats for each post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected272 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28171272

PHP code Passed 2 tests

A short 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.37
Average class complexity19.50
▷ Minimum class complexity6.00
▷ Maximum class complexity33.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1578.95%
▷ Protected methods00.00%
▷ Private methods421.05%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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