100% amcharts-embed

Code Review | amCharts Embed

WordPress plugin amCharts Embed scored 100% from 54 tests.

About plugin

  • Plugin page: amcharts-embed
  • Plugin version: 1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 5.8.1
  • First release: Apr 9, 2015
  • Latest release: Jan 26, 2018
  • Number of updates: 18
  • Update frequency: every 56.8 days
  • Top authors: ramiy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 4,689 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼143.62ms] Passed 4 tests

Server-side resources used by amCharts Embed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.93 ▲12.64
Dashboard /wp-admin3.07 ▲0.0253.32 ▲3.35
Posts /wp-admin/edit.php3.12 ▲0.0134.37 ▼9.61
Add New Post /wp-admin/post-new.php5.43 ▲0.0088.29 ▼559.98
Media Library /wp-admin/upload.php3.01 ▲0.0130.33 ▼8.22

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for amCharts Embed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲9715.75 ▲0.307.35 ▼1.1352.77 ▲6.59
Dashboard /wp-admin2,970 ▲395.91 ▼0.02135.74 ▼10.83110.83 ▼1.36
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0063.94 ▲0.5692.12 ▼1.88
Add New Post /wp-admin/post-new.php1,672 ▼1118.93 ▲0.42386.68 ▲4.44103.15 ▼12.87
Media Library /wp-admin/upload.php1,807 ▼35.01 ▲0.00152.19 ▲0.85116.66 ▼8.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 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
7 plugin tags: shortcode, oembed, charts, ammap, amcharts...

amcharts-embed/amcharts-embed.php Passed 13 tests

The main PHP script in "amCharts Embed" version 1.3 is automatically included on every request by WordPress
77 characters long description:
Embed interactive charts and maps from amCharts.com into your WordPress site.

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
Everything looks great! No dangerous files found in this plugin50 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png31.95KB9.75KB▼ 69.50%
screenshot-1.png21.28KB6.57KB▼ 69.13%