10% acw-lore

Code Review | ACW Lore

WordPress plugin ACW Lore scored 10% from 53 tests.

About plugin

  • Plugin page: acw-lore
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 5.8.1
  • First release: Jan 21, 2014
  • Latest release: Feb 4, 2015
  • Number of updates: 8
  • Update frequency: every 47.5 days
  • Top authors: Azumi93 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 689 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/acw-lore/acw_lore.php+15
    file_get_contents(http://wp.com/wp-content/plugins/acw_lore/acw_lore_quotes.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

Server metrics [RAM: ▼1.87MB] [CPU: ▼305.26ms] Passed 4 tests

Server-side resources used by ACW Lore
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.76 ▼0.965.08 ▼19.01
Dashboard /wp-admin1.78 ▼1.2710.50 ▼33.12
Posts /wp-admin/edit.php1.78 ▼1.326.56 ▼37.51
Add New Post /wp-admin/post-new.php1.78 ▼3.656.33 ▼1,115.09
Media Library /wp-admin/upload.php1.78 ▼1.224.95 ▼35.32

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ACW Lore
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,668 ▲8615.93 ▲0.337.28 ▼1.0750.44 ▲3.48
Dashboard /wp-admin2,930 ▲775.94 ▲0.06139.60 ▼11.60111.07 ▲0.20
Posts /wp-admin/edit.php2,703 ▼32.70 ▲0.0169.53 ▲0.3094.43 ▼1.77
Add New Post /wp-admin/post-new.php1,481 ▼218.45 ▼0.01354.57 ▼16.70118.67 ▲6.31
Media Library /wp-admin/upload.php1,772 ▼04.99 ▼0.03151.44 ▼7.34112.31 ▼11.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/acw-lore/acw_lore.php+15
    file_get_contents(http://wp.com/wp-content/plugins/acw_lore/acw_lore_quotes.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/acw-lore/acw_lore.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (banner-772x250.png) image not found
The official readme.txt might help

acw-lore/acw_lore.php 92% from 13 tests

Analyzing the main PHP file in "ACW Lore" version 1.0
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acw-lore.php" instead of "acw_lore.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP113319

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin