93% a-long-time-ago

Code Review | A Long Time Ago

WordPress plugin A Long Time Ago scored 93% from 54 tests.

About plugin

  • Plugin page: a-long-time-ago
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 5.9.2
  • First release: Jan 23, 2014
  • Latest release: Jan 23, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: amielucha (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 1,457 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by A Long Time Ago
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.87 ▲5.99
Dashboard /wp-admin3.41 ▲0.0039.83 ▲6.40
Posts /wp-admin/edit.php3.64 ▲0.0038.33 ▲2.76
Add New Post /wp-admin/post-new.php6.89 ▼0.0898.34 ▼1,189.12
Media Library /wp-admin/upload.php3.29 ▼0.0125.26 ▼5.21

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for A Long Time Ago
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7315.85 ▲0.175.67 ▲0.092.47 ▲0.25
Dashboard /wp-admin2,892 ▲316.15 ▲0.04116.77 ▼16.46155.71 ▼3.24
Posts /wp-admin/edit.php2,691 ▲33.25 ▲0.0165.50 ▲1.92154.29 ▲16.76
Add New Post /wp-admin/post-new.php1,690 ▼6120.63 ▼0.34428.63 ▼10.90162.30 ▲1.78
Media Library /wp-admin/upload.php1,698 ▲35.45 ▼0.06136.08 ▼10.29183.60 ▼10.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/a-long-time-ago/long-time-ago.php

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)
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
Please take inspiration from this readme.txt

a-long-time-ago/long-time-ago.php 85% from 13 tests

The main file in "A Long Time Ago" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • 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: Please rename the main PHP file in this plugin to the plugin slug ("a-long-time-ago.php" instead of "long-time-ago.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected112 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File281054

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
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 functions5100.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
No PNG images were found in this plugin