78% ada2go-mark-your-old-articles

Code Review | Ada2go - Mark your old Articles

WordPress plugin Ada2go - Mark your old Articles scored78%from 54 tests.

About plugin

  • Plugin page: ada2go-mark-your-...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Jun 7, 2021
  • Latest release: Jul 20, 2021
  • Number of updates: 11
  • Update frequency: every 31.1 days
  • Top authors: ada2go (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /435 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.32MB] [CPU: ▼16.27ms] Passed 4 tests

An overview of server-side resources used by Ada2go - Mark your old Articles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0236.98 ▼11.34
Dashboard /wp-admin3.32 ▲0.0248.38 ▼4.52
Posts /wp-admin/edit.php3.37 ▲0.0252.93 ▲4.27
Add New Post /wp-admin/post-new.php4.61 ▼1.2745.76 ▼49.58
Media Library /wp-admin/upload.php3.24 ▲0.0235.74 ▲0.38
Mark Older Posts /wp-admin/options-general.php?page=a2g_mop_settings3.2334.70

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ada2go - Mark your old Articles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.63 ▼0.671.77 ▼0.5541.95 ▲4.63
Dashboard /wp-admin2,209 ▲385.82 ▼0.07101.44 ▼9.7140.18 ▼7.70
Posts /wp-admin/edit.php2,098 ▲122.03 ▼0.0140.11 ▲2.5035.76 ▲1.39
Add New Post /wp-admin/post-new.php1,536 ▲2223.16 ▲5.65610.87 ▼97.7049.62 ▼10.09
Media Library /wp-admin/upload.php1,394 ▲94.19 ▼0.0296.16 ▼16.3242.72 ▼4.32
Mark Older Posts /wp-admin/options-general.php?page=a2g_mop_settings8412.1624.8128.22

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ada2go-mark-your-old-articles/ada2go-mark-old-posts.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ada2go-mark-your-old-articles/settings_page.php:42

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: hint, markierung, hinweis, old article, mark post...

ada2go-mark-your-old-articles/ada2go-mark-old-posts.php 77% from 13 tests

"Ada2go - Mark your old Articles" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 398 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("ada2go-mark-your-old-articles.php" instead of "ada2go-mark-old-posts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin291 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File1262695

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin