83% ancient-world-linked-data-for-wordpress

Code Review | Ancient World Linked Data for WordPress

WordPress plugin Ancient World Linked Data for WordPress scored 83% from 54 tests.

About plugin

  • Plugin page: ancient-world-lin...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.3
  • WordPress version: 6.3.1
  • First release: Jun 3, 2012
  • Latest release: Aug 19, 2015
  • Number of updates: 22
  • Update frequency: every 53.3 days
  • Top authors: donutz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,077 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.88ms] Passed 4 tests

A check of server-side resources used by Ancient World Linked Data for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.93 ▼2.94
Dashboard /wp-admin3.39 ▲0.0843.32 ▼2.25
Posts /wp-admin/edit.php3.50 ▲0.1448.33 ▲0.88
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.00 ▼11.22
Media Library /wp-admin/upload.php3.31 ▲0.0834.31 ▲1.77
AWLD Linked Data /wp-admin/options-general.php?page=wp-awld-js-settings3.3727.54

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 262 new files
Database: no new tables, 12 new options
New WordPress options
wp_awld_js_scope
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
wp_awld_js_quicktags
wp_awld_js_db_version
wp_awld_js_widget_implement
wp_awld_js_button
db_upgraded
widget_recent-posts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Ancient World Linked Data for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.25 ▼0.731.58 ▼0.0538.15 ▼2.74
Dashboard /wp-admin2,213 ▲224.87 ▼0.02112.59 ▲14.8042.09 ▲1.46
Posts /wp-admin/edit.php2,099 ▲102.00 ▲0.0140.33 ▲0.4435.78 ▲0.33
Add New Post /wp-admin/post-new.php1,544 ▲323.09 ▼0.13638.61 ▼22.6354.32 ▼0.34
Media Library /wp-admin/upload.php1,398 ▲104.23 ▼0.0594.79 ▼4.0040.40 ▼6.95
AWLD Linked Data /wp-admin/options-general.php?page=wp-awld-js-settings9612.0528.7035.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ancient-world-linked-data-for-wordpress/inc/widgets/widget-awld-index.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ancient-world-linked-data-for-wordpress/inc/admin/admin-settings.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ancient-world-linked-data-for-wordpress/inc/admin/admin-init.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ancient-world-linked-data-for-wordpress/inc/core/functions.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ancient-world-linked-data-for-wordpress/inc/widgets/widget-awld-index.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (popover) image required
  • Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

ancient-world-linked-data-for-wordpress/wp-awld-js.php 77% from 13 tests

The main file in "Ancient World Linked Data for WordPress" v. 0.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 259 characters long)
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("ancient-world-linked-data-for-wordpress.php" instead of "wp-awld-js.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected13,795 lines of code in 198 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1322,0293,00711,030
PHP10134363998
CSS55942604
CoffeeScript2312038456
HTML1853277
LESS13412176
Markdown5570131
Python17047
JSON10035
make19032
YAML1009

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity16.00
▷ Minimum class complexity5.00
▷ Maximum class complexity27.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.22MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png194.47KB64.94KB▼ 66.61%
inc/assets/css/admin/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
inc/assets/css/admin/images/ui-icons_f6cf3b_256x240.png8.68KB4.11KB▼ 52.68%
inc/assets/css/admin/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
inc/assets/css/admin/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%